<!doctype html>
<html>
<head>
    <!--Setting-->
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta name="apple-mobile-web-app-capable"  content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no,email=no">
    
    
    <!--Simple SEO-->


<meta name="robots" content=all />
<meta name="google" content=all />
<meta name="googlebot" content=all />
<meta name="verify" content=all />
    <!--Title-->

<title>MIAbon&#39;s blog</title>

<link rel="alternate" href="/atom.xml" title="MIAbon&#39;s blog" type="application/atom+xml">


<link rel="icon" href="/favicon.ico">

    
<link rel="stylesheet" href="/css/base.css">
<link rel="stylesheet" href="/css/pages/article-exp.css">
<link rel="stylesheet" href="//cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="/css/thirdParty/highlight/github.css">

    <!--script-->


<script src="http://cdn1.lncld.net/static/js/3.2.1/av-min.js"></script>
<script>
  var appId = "i7AHmC7NPbPtgS3YxT67dRIc-9Nh9j0Va";
  var appKey = "g6TKbY8O4TsCDMcemoC3STvQ";
  var region = "";
  AV.init({
    appId: appId,
    appKey: appKey,
    region: region
  });
</script>


<script async src="//dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js"></script>

<!--<script src="https://imsun.github.io/gitment/dist/gitment.browser.js"></script>-->


    
    
</head>

<body id="normal">
<!--[if lte IE 8]>
<style>
    html{ font-size: 1em }
</style>
<![endif]-->
<!--[if lte IE 9]>
<style>
    header{ top: 71px; position: absolute!important;}
    #container{padding-top: 151px!important;}
</style>
<div style="position:fixed;z-index:9999;left:0;top:0;width:100%;height:70px;background-color:#e0e0e0;color:#396CA5;border-bottom:1px solid #cecece;text-align:center;line-height:70px;white-space: nowrap;overflow: hidden;text-overflow: ellipsis">你使用的浏览器版本过低，为了你更好的阅读体验，请更新浏览器的版本或者使用其他现代浏览器，比如Chrome、Firefox、Safari等。</div>
<![endif]-->

<div id="wrap">
    <header >
    <div id="site-meta">
        <a href="/" id="logo">
            <h1 class="title">MIAbon&#39;s blog</h1>
        </a>
        
    </div>
    <ul id="nav">
        
            <li><a href="/"><i class="fa fa-home"></i>首页</a></li>
        
            <li><a href="/atom.xml"><i class="fa fa-rss"></i>RSS</a></li>
        
        <li id="search"><a href="javascript:void(0)"><i class="fa fa-search"></i>搜索</a></li>
    </ul>
</header>

    <div id="container">
        
<ul id="sidebar">
    
    
    
    
<li class="widget widget-normal category">
    <h3 class="fa fa-th widget-title">分类</h3>
    <ul class="category-list"><li class="category-list-item"><a class="category-list-link" href="/categories/ELK/"><i class="fa" aria-hidden="true">ELK</i></a><span class="category-list-count">1</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/Lvs/"><i class="fa" aria-hidden="true">Lvs</i></a><span class="category-list-count">2</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/admin/"><i class="fa" aria-hidden="true">admin</i></a><span class="category-list-count">5</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/ansible/"><i class="fa" aria-hidden="true">ansible</i></a><span class="category-list-count">1</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/aws/"><i class="fa" aria-hidden="true">aws</i></a><span class="category-list-count">1</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/docker/"><i class="fa" aria-hidden="true">docker</i></a><span class="category-list-count">7</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/drone/"><i class="fa" aria-hidden="true">drone</i></a><span class="category-list-count">1</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/kernel/"><i class="fa" aria-hidden="true">kernel</i></a><span class="category-list-count">2</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/kubernetes/"><i class="fa" aria-hidden="true">kubernetes</i></a><span class="category-list-count">2</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/kvm/"><i class="fa" aria-hidden="true">kvm</i></a><span class="category-list-count">1</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/mongodb/"><i class="fa" aria-hidden="true">mongodb</i></a><span class="category-list-count">1</span></li><li class="category-list-item"><a class="category-list-link current" href="/categories/python/"><i class="fa" aria-hidden="true">python</i></a><span class="category-list-count">9</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/share/"><i class="fa" aria-hidden="true">share</i></a><span class="category-list-count">1</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/web/"><i class="fa" aria-hidden="true">web</i></a><span class="category-list-count">12</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/zabbix/"><i class="fa" aria-hidden="true">zabbix</i></a><span class="category-list-count">3</span></li></ul>
</li>


    
    
<li class="widget widget-normal archive">
  <h3 class="fa fa-archive widget-title">归档</h3>
    <ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="/archives/2018/02/"><i class="fa" aria-hidden="true">二月 2018</i></a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2018/01/"><i class="fa" aria-hidden="true">一月 2018</i></a><span class="archive-list-count">8</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/12/"><i class="fa" aria-hidden="true">十二月 2017</i></a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/11/"><i class="fa" aria-hidden="true">十一月 2017</i></a><span class="archive-list-count">3</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/10/"><i class="fa" aria-hidden="true">十月 2017</i></a><span class="archive-list-count">4</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/09/"><i class="fa" aria-hidden="true">九月 2017</i></a><span class="archive-list-count">2</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/08/"><i class="fa" aria-hidden="true">八月 2017</i></a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/05/"><i class="fa" aria-hidden="true">五月 2017</i></a><span class="archive-list-count">4</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/04/"><i class="fa" aria-hidden="true">四月 2017</i></a><span class="archive-list-count">2</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/03/"><i class="fa" aria-hidden="true">三月 2017</i></a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/01/"><i class="fa" aria-hidden="true">一月 2017</i></a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/12/"><i class="fa" aria-hidden="true">十二月 2016</i></a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/11/"><i class="fa" aria-hidden="true">十一月 2016</i></a><span class="archive-list-count">3</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/10/"><i class="fa" aria-hidden="true">十月 2016</i></a><span class="archive-list-count">2</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/08/"><i class="fa" aria-hidden="true">八月 2016</i></a><span class="archive-list-count">2</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/05/"><i class="fa" aria-hidden="true">五月 2016</i></a><span class="archive-list-count">4</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/04/"><i class="fa" aria-hidden="true">四月 2016</i></a><span class="archive-list-count">8</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2015/05/"><i class="fa" aria-hidden="true">五月 2015</i></a><span class="archive-list-count">1</span></li></ul>
</li>


    
    
<li class="widget widget-normal tags">
  <h3 class="fa fa-tags widget-title">标签云</h3>
  <div class="tagcloud-content">
    
      <a href="/tags/drone/" style="font-size: 0.14rem; color: #69c">drone</a> <a href="/tags/linux/" style="font-size: 0.2rem; color: #0a407c">linux</a> <a href="/tags/kernel/" style="font-size: 0.16rem; color: #4f83b8">kernel</a> <a href="/tags/ELK/" style="font-size: 0.14rem; color: #69c">ELK</a> <a href="/tags/ansible/" style="font-size: 0.14rem; color: #69c">ansible</a> <a href="/tags/swarm/" style="font-size: 0.14rem; color: #69c">swarm</a> <a href="/tags/docker/" style="font-size: 0.18rem; color: #215690">docker</a> <a href="/tags/firewalld/" style="font-size: 0.14rem; color: #69c">firewalld</a> <a href="/tags/zabbix/" style="font-size: 0.16rem; color: #4f83b8">zabbix</a> <a href="/tags/aws/" style="font-size: 0.14rem; color: #69c">aws</a> <a href="/tags/web/" style="font-size: 0.16rem; color: #4f83b8">web</a> <a href="/tags/python/" style="font-size: 0.18rem; color: #215690">python</a> <a href="/tags/spider/" style="font-size: 0.17rem; color: #386da4">spider</a>
  </div>
</li>


    
    
<li class="widget widget-normal friends-link">
    <h3 class="fa fa-globe widget-title">友链</h3><br/>

    
        <a href="http://zhengwei666.wang" class="fa" target="_blank">zhengwei</a>

    
        <a href="https://you-deng.github.io" class="fa" target="_blank">dengyou</a>

    
        <a href="http://www.systemd.cn" class="fa" target="_blank">langyaoliang</a>

    
        <a href="http://www.chen-hao.com.cn/" class="fa" target="_blank">chenhao</a>

    
        <a href="http://www.yulongjun.com" class="fa" target="_blank">yulongjun</a>

    

</li>

    
</ul>


        <ul id="main">
    

    
    
    
    
    
    
    
    <li  class="article-excerpt-wrap " _href = "/2016/04/25/vsftp/">
        <div class="article-img img-ajax" data-src= /img/default-1.jpg>
           <div class="loading-img"><i class="fa fa-pulse fa-spinner"></i></div>
        </div>
        <div class="article-excerpt">
            
            <a class="article-title-link" href="/2016/04/25/vsftp/">
                <h2 class="article-title">vsftp</h2>
            </a>
            
            <p class="article-content">
                /etc/logrotate.d/vsftpd 日志滚动
/etc/pam.d/vsftpd 认证文件pam:Plugable Authentication Module 插件式认证模块
/etc/nsswitch.confnsswitch:名称解析框架
/etc/vsftpd/vsftpd.conf 主配置文件
/etc/rc.d/init.d/vsftpd 服务脚本
###当ftp用户访问ftp服务时应对应chroot，禁锢用户在起家目录中12vim /etc/vsftpd.confchroot_local_user=&#123;YES|NO&#125; `开启选项默认是NO`
123chroot_list_enable=YESchroot_list_file=/etc/vsftpd/chroot_list`这两个需要一起启用，把需要禁锢的用户写入当前列表，每行一个用户`
loc...
            </p>
            <div class="article-meta">
    
    
    <span class="categories-meta fa-wrap">
            <i class="fa fa-folder-open-o"></i>
        <span>admin</span>
    </span>
    
    
    <span class="fa-wrap">
         <i class="fa fa-tags"></i>
        <span class="tags-meta">
            
            null
            
        </span>
    </span>
    
    
    <span class="fa-wrap">
        <i class="fa fa-clock-o"></i>
        <span class="date-meta ">2016/04/25</span>
    </span>
    
    
    <span class="fa-wrap">
            <i class="fa fa-thermometer-three-quarters"></i>
        <span class="hits hits-meta " data-leadcloud-title="vsftp"
              data-leadcloud-url="/2016/04/25/vsftp/"><i class="fa fa-spinner fa-spin"></i></span>
    </span>
    
    
    <a href="/2016/04/25/vsftp/" class="read-article">阅读全文</a>
    
</div>

        </div>
        
    </li>
    
    
    <li  class="article-excerpt-wrap " _href = "/2016/04/14/三机分离之xcache/">
        <div class="article-img img-ajax" data-src= /img/default-1.jpg>
           <div class="loading-img"><i class="fa fa-pulse fa-spinner"></i></div>
        </div>
        <div class="article-excerpt">
            
            <a class="article-title-link" href="/2016/04/14/三机分离之xcache/">
                <h2 class="article-title">三机分离xcache</h2>
            </a>
            
            <p class="article-content">
                xcache测试ab -n 1000 -c 100 http://www.phpma.com/Server Software:        Apache/2.4.6Server Hostname:        www.phpma.comServer Port:            80
Document Path:          /Document Length:        9281 bytes
Concurrency Level:      100Time taken for tests:   44.181 secondsComplete requests:      1000Failed requests:        0Write errors:           0Total transferred:      10599000 bytesHTML tran...
            </p>
            <div class="article-meta">
    
    
    <span class="categories-meta fa-wrap">
            <i class="fa fa-folder-open-o"></i>
        <span>web</span>
    </span>
    
    
    <span class="fa-wrap">
         <i class="fa fa-tags"></i>
        <span class="tags-meta">
            
            null
            
        </span>
    </span>
    
    
    <span class="fa-wrap">
        <i class="fa fa-clock-o"></i>
        <span class="date-meta ">2016/04/14</span>
    </span>
    
    
    <span class="fa-wrap">
            <i class="fa fa-thermometer-three-quarters"></i>
        <span class="hits hits-meta " data-leadcloud-title="三机分离xcache"
              data-leadcloud-url="/2016/04/14/三机分离之xcache/"><i class="fa fa-spinner fa-spin"></i></span>
    </span>
    
    
    <a href="/2016/04/14/三机分离之xcache/" class="read-article">阅读全文</a>
    
</div>

        </div>
        
    </li>
    
    
    <li  class="article-excerpt-wrap " _href = "/2016/04/14/三机分离LAMP/">
        <div class="article-img img-ajax" data-src= /img/default-1.jpg>
           <div class="loading-img"><i class="fa fa-pulse fa-spinner"></i></div>
        </div>
        <div class="article-excerpt">
            
            <a class="article-title-link" href="/2016/04/14/三机分离LAMP/">
                <h2 class="article-title">三机分离LAMP</h2>
            </a>
            
            <p class="article-content">
                mariadb:172.18.40.77php-fpm:172.18.40.88httpd:172.18.40.99三机分离之mariadb
yum install -y mariadb-server    #先安装mariadb服务端

编辑mariadb配置文件12345vim /etc/my.cnf    [mysqld]skip_name_resolve = ON    #跳过检测hostnamesystemctl start mariadbsystemctl enable mariadb
12345678910mysql_secure_installation    #设置root密码Set root password? [Y/n] YNew password:Re-enter new password:Password updated successfully!Remov...
            </p>
            <div class="article-meta">
    
    
    <span class="categories-meta fa-wrap">
            <i class="fa fa-folder-open-o"></i>
        <span>web</span>
    </span>
    
    
    <span class="fa-wrap">
         <i class="fa fa-tags"></i>
        <span class="tags-meta">
            
            null
            
        </span>
    </span>
    
    
    <span class="fa-wrap">
        <i class="fa fa-clock-o"></i>
        <span class="date-meta ">2016/04/14</span>
    </span>
    
    
    <span class="fa-wrap">
            <i class="fa fa-thermometer-three-quarters"></i>
        <span class="hits hits-meta " data-leadcloud-title="三机分离LAMP"
              data-leadcloud-url="/2016/04/14/三机分离LAMP/"><i class="fa fa-spinner fa-spin"></i></span>
    </span>
    
    
    <a href="/2016/04/14/三机分离LAMP/" class="read-article">阅读全文</a>
    
</div>

        </div>
        
    </li>
    
    
    <li  class="article-excerpt-wrap " _href = "/2016/04/14/三机分离之httpd/">
        <div class="article-img img-ajax" data-src= /img/default-1.jpg>
           <div class="loading-img"><i class="fa fa-pulse fa-spinner"></i></div>
        </div>
        <div class="article-excerpt">
            
            <a class="article-title-link" href="/2016/04/14/三机分离之httpd/">
                <h2 class="article-title">三机分离httpd</h2>
            </a>
            
            <p class="article-content">
                12345mkdir -pv /htdocs/&#123;phpmyadmin,wordpress&#125;mkdir: created directory ‘/htdocs’mkdir: created directory ‘/htdocs/phpmyadmin’mkdir: created directory ‘/htdocs/wordpress’chown -R apache:apache /htdocs
1234567891011vim /etc/httpd/conf/httpd.conf#DocumentRoot "/var/www/html"&lt;IfModule dir_module&gt;    DirectoryIndex  index.php  index.html &lt;/IfModule&gt;    AddType application/x-comp...
            </p>
            <div class="article-meta">
    
    
    <span class="categories-meta fa-wrap">
            <i class="fa fa-folder-open-o"></i>
        <span>web</span>
    </span>
    
    
    <span class="fa-wrap">
         <i class="fa fa-tags"></i>
        <span class="tags-meta">
            
            null
            
        </span>
    </span>
    
    
    <span class="fa-wrap">
        <i class="fa fa-clock-o"></i>
        <span class="date-meta ">2016/04/14</span>
    </span>
    
    
    <span class="fa-wrap">
            <i class="fa fa-thermometer-three-quarters"></i>
        <span class="hits hits-meta " data-leadcloud-title="三机分离httpd"
              data-leadcloud-url="/2016/04/14/三机分离之httpd/"><i class="fa fa-spinner fa-spin"></i></span>
    </span>
    
    
    <a href="/2016/04/14/三机分离之httpd/" class="read-article">阅读全文</a>
    
</div>

        </div>
        
    </li>
    
    
    <li  class="article-excerpt-wrap " _href = "/2016/04/14/三机分离之mariadb/">
        <div class="article-img img-ajax" data-src= /img/default-1.jpg>
           <div class="loading-img"><i class="fa fa-pulse fa-spinner"></i></div>
        </div>
        <div class="article-excerpt">
            
            <a class="article-title-link" href="/2016/04/14/三机分离之mariadb/">
                <h2 class="article-title">三机分离mariadb</h2>
            </a>
            
            <p class="article-content">
                1yum install -y mariadb-server
12345vim /etc/my.cnf[mysqld]skip_name_resolve = ONsystemctl start mariadbsystemctl enable mariadb
12345678910mysql_secure_installationSet root password? [Y/n] YNew password: Re-enter new password: Password updated successfully!Remove anonymous users? [Y/n]YDisallow root login remotely? [Y/n]YRemove test database and access to it? [Y/n] YReload privilege tables now...
            </p>
            <div class="article-meta">
    
    
    <span class="categories-meta fa-wrap">
            <i class="fa fa-folder-open-o"></i>
        <span>web</span>
    </span>
    
    
    <span class="fa-wrap">
         <i class="fa fa-tags"></i>
        <span class="tags-meta">
            
            null
            
        </span>
    </span>
    
    
    <span class="fa-wrap">
        <i class="fa fa-clock-o"></i>
        <span class="date-meta ">2016/04/14</span>
    </span>
    
    
    <span class="fa-wrap">
            <i class="fa fa-thermometer-three-quarters"></i>
        <span class="hits hits-meta " data-leadcloud-title="三机分离mariadb"
              data-leadcloud-url="/2016/04/14/三机分离之mariadb/"><i class="fa fa-spinner fa-spin"></i></span>
    </span>
    
    
    <a href="/2016/04/14/三机分离之mariadb/" class="read-article">阅读全文</a>
    
</div>

        </div>
        
    </li>
    
    
    <li  class="article-excerpt-wrap " _href = "/2016/04/14/三机分离之php-fpm/">
        <div class="article-img img-ajax" data-src= /img/default-1.jpg>
           <div class="loading-img"><i class="fa fa-pulse fa-spinner"></i></div>
        </div>
        <div class="article-excerpt">
            
            <a class="article-title-link" href="/2016/04/14/三机分离之php-fpm/">
                <h2 class="article-title">三机分离php-fpm</h2>
            </a>
            
            <p class="article-content">
                1mysql -uroot -h172.18.40.77 -p925112
测试是否可以远程登录
配置php-fpm123vim /etc/php-fpm.d/www.conflisten = 172.18.40.88:9000    #当前php主机ip和监听端口listen.allowed_clients = 172.18.40.99    #允许前端httpd主机的ip
12mkdir /var/lib/php/sessionchown -R apache:apache /var/lib/php/session
1234mkdir -pv /htdocs/&#123;wordpress,phpmyadmin&#125;mkdir: created directory ‘/htdocs’mkdir: created directory ‘/htdocs/wordpress’mkd...
            </p>
            <div class="article-meta">
    
    
    <span class="categories-meta fa-wrap">
            <i class="fa fa-folder-open-o"></i>
        <span>web</span>
    </span>
    
    
    <span class="fa-wrap">
         <i class="fa fa-tags"></i>
        <span class="tags-meta">
            
            null
            
        </span>
    </span>
    
    
    <span class="fa-wrap">
        <i class="fa fa-clock-o"></i>
        <span class="date-meta ">2016/04/14</span>
    </span>
    
    
    <span class="fa-wrap">
            <i class="fa fa-thermometer-three-quarters"></i>
        <span class="hits hits-meta " data-leadcloud-title="三机分离php-fpm"
              data-leadcloud-url="/2016/04/14/三机分离之php-fpm/"><i class="fa fa-spinner fa-spin"></i></span>
    </span>
    
    
    <a href="/2016/04/14/三机分离之php-fpm/" class="read-article">阅读全文</a>
    
</div>

        </div>
        
    </li>
    
    
    <li  class="article-excerpt-wrap " _href = "/2016/04/14/CentOS6编译安装LAMP/">
        <div class="article-img img-ajax" data-src= /img/default-1.jpg>
           <div class="loading-img"><i class="fa fa-pulse fa-spinner"></i></div>
        </div>
        <div class="article-excerpt">
            
            <a class="article-title-link" href="/2016/04/14/CentOS6编译安装LAMP/">
                <h2 class="article-title">CentOS6编译安装LAMP</h2>
            </a>
            
            <p class="article-content">
                下载以下文件12345apr-1.5.0.tar.bz2  apr-util-1.5.3.tar.bz2 httpd-2.4.9.tar.bz2 mariadb-5.5.43-linux-x86_64.tar.gz到/usr/src目录tar -vxf mariadb-5.5.43-linux-x86_64.tar.gz -C /usr/local/cd /usr/localln -sv mariadb-5.5.43-linux-x86_64.tar.gz mysql
1234567891011cd mysqlchown -R root:mysql *mkdir -pv /mydata/mariadbchown -R mysql:mysql /usr/mariadbmkdir /etc/mysqlcp support-files/my-large.cnf /etc/mysql/my....
            </p>
            <div class="article-meta">
    
    
    <span class="categories-meta fa-wrap">
            <i class="fa fa-folder-open-o"></i>
        <span>web</span>
    </span>
    
    
    <span class="fa-wrap">
         <i class="fa fa-tags"></i>
        <span class="tags-meta">
            
            null
            
        </span>
    </span>
    
    
    <span class="fa-wrap">
        <i class="fa fa-clock-o"></i>
        <span class="date-meta ">2016/04/14</span>
    </span>
    
    
    <span class="fa-wrap">
            <i class="fa fa-thermometer-three-quarters"></i>
        <span class="hits hits-meta " data-leadcloud-title="CentOS6编译安装LAMP"
              data-leadcloud-url="/2016/04/14/CentOS6编译安装LAMP/"><i class="fa fa-spinner fa-spin"></i></span>
    </span>
    
    
    <a href="/2016/04/14/CentOS6编译安装LAMP/" class="read-article">阅读全文</a>
    
</div>

        </div>
        
    </li>
    
    
    <li  class="article-excerpt-wrap " _href = "/2016/04/10/CentOS7服务器部署ssh证书授权登录/">
        <div class="article-img img-ajax" data-src= /img/default-1.jpg>
           <div class="loading-img"><i class="fa fa-pulse fa-spinner"></i></div>
        </div>
        <div class="article-excerpt">
            
            <a class="article-title-link" href="/2016/04/10/CentOS7服务器部署ssh证书授权登录/">
                <h2 class="article-title">CentOS7 服务器部署ssh证书授权登录</h2>
            </a>
            
            <p class="article-content">
                #使用ssh证书授权登录的必要性一般用户登录时，往往是使用账号密码登录，但是这样的登录方式风险相当高，使用密钥登录能大大降低这个风险，这个密钥是针对每台计算机生成的独一无二的凭证，保存在登录用户的电脑中，只能通过登录用户电脑的证书授权才能登录服务器。
建立一个普通用户1useradd name
查看该用户id12id nameuid=1000(name) gid=1000(name) groups=1000(name)
12345passwd name        #设置用户密码Changing password for user name.New password: Retype new password: passwd: all authentication tokens updated successfully.
123su name        #切换到该用户pwd   ...
            </p>
            <div class="article-meta">
    
    
    <span class="categories-meta fa-wrap">
            <i class="fa fa-folder-open-o"></i>
        <span>admin</span>
    </span>
    
    
    <span class="fa-wrap">
         <i class="fa fa-tags"></i>
        <span class="tags-meta">
            
            null
            
        </span>
    </span>
    
    
    <span class="fa-wrap">
        <i class="fa fa-clock-o"></i>
        <span class="date-meta ">2016/04/10</span>
    </span>
    
    
    <span class="fa-wrap">
            <i class="fa fa-thermometer-three-quarters"></i>
        <span class="hits hits-meta " data-leadcloud-title="CentOS7 服务器部署ssh证书授权登录"
              data-leadcloud-url="/2016/04/10/CentOS7服务器部署ssh证书授权登录/"><i class="fa fa-spinner fa-spin"></i></span>
    </span>
    
    
    <a href="/2016/04/10/CentOS7服务器部署ssh证书授权登录/" class="read-article">阅读全文</a>
    
</div>

        </div>
        
    </li>
    
    
    <li  class="article-excerpt-wrap " _href = "/2015/05/15/nginx_proxy/">
        <div class="article-img img-ajax" data-src= /img/default-1.jpg>
           <div class="loading-img"><i class="fa fa-pulse fa-spinner"></i></div>
        </div>
        <div class="article-excerpt">
            
            <a class="article-title-link" href="/2015/05/15/nginx_proxy/">
                <h2 class="article-title">keepalived+nginx反向代理高可用</h2>
            </a>
            
            <p class="article-content">
                1号机172.18.40.50 [root@miabonknha1 ~]2号机172.18.40.51 [root@miabonknha2 ~]3号机172.18.40.52 [root@miabonrs1 ~]4号机172.18.40.53 [root@miabonrs2 ~]5号机172.18.40.110 [root@miabonnfsmar ~]
5台机时间校验，建立时间检测任务1234yum install -y ntpdatentpdate 172.18.0.1crontab -e*/5 * * * * /sbin/ntpdate 172.18.0.1 &amp;&gt; /dev/null
检查iptables selinux是否关闭12iptables -vnLgetenforce #setenforce 0关闭selinux
5号机建立数据库123456789101...
            </p>
            <div class="article-meta">
    
    
    <span class="categories-meta fa-wrap">
            <i class="fa fa-folder-open-o"></i>
        <span>Lvs</span>
    </span>
    
    
    <span class="fa-wrap">
         <i class="fa fa-tags"></i>
        <span class="tags-meta">
            
            null
            
        </span>
    </span>
    
    
    <span class="fa-wrap">
        <i class="fa fa-clock-o"></i>
        <span class="date-meta ">2015/05/15</span>
    </span>
    
    
    <span class="fa-wrap">
            <i class="fa fa-thermometer-three-quarters"></i>
        <span class="hits hits-meta " data-leadcloud-title="keepalived+nginx反向代理高可用"
              data-leadcloud-url="/2015/05/15/nginx_proxy/"><i class="fa fa-spinner fa-spin"></i></span>
    </span>
    
    
    <a href="/2015/05/15/nginx_proxy/" class="read-article">阅读全文</a>
    
</div>

        </div>
        
    </li>
    
    

</ul>

<div id="page-pagination">
    <div id="page-nav">
        <a class="extend prev" rel="prev" href="/page/4/">&laquo; Prev</a><a class="page-number" href="/">1</a><span class="space">&hellip;</span><a class="page-number" href="/page/3/">3</a><a class="page-number" href="/page/4/">4</a><span class="page-number current">5</span><span class="extend disable next" rel="next">Next &raquo;</span>
    </div>
</div>

    </div>
    <footer id="footer">
    
    <div class="social">
        
        <a href="https://www.example1.com" class="fa fa-free-code-camp" target="_blank" title="freecodecamp"></a>
        
        <a href="https://github.com/werewolf2101" class="fa fa-github" target="_blank" title="Follow me~"></a>
        
        <a href="mailto:werewolf2101@gmail.com" class="fa fa-email" target="_blank" title="Email"></a>
        
    </div>
    
    <div>
        
        <a href="/" class="copyright-links">MIAbon</a>&copy;2015 - 2018.All Rights
        Reserved.
    </div>
    <p>Powered by <a href="https://hexo.io" class="copyright-links" target="_blank">Hexo</a> | Theme by <a
                href="https://github.com/GeekaholicLin" class="copyright-links" target="_blank">GeekaholicLin</a>
    </p>
    
    
    <p>
        <span id="busuanzi_container_site_uv" class="fa fa-bar-chart">
        欢迎第<span id="busuanzi_value_site_uv"><i class="fa fa-spinner fa-spin"></i></span>位小伙伴~
        </span>
    </p>
    
</footer>

</div>
    <ul id="tools">
    <li class="totop-btn fa fa-angle-up"></li>
    <li class="exchange-btn fa fa-exchange"></li>
  
    

    
</ul>
<p id="process"></p>
<div id="search-overlay">
    <div class="search-area-wrap">
        <div id="search-area">
            <div class="input-wrap focus">
                <i class="fa fa-search" aria-hidden="true"></i>
                <input id="search-input" autofocus autocomplete="off" type="text"
                       placeholder="search this website..."/>
            </div>
            <ul id="search-result">
                <li class="load-first"><i class="fa fa-spinner fa-pulse"></i></li>
            </ul>
        </div>
    </div>
</div>


    <script src="/js/highsong.js"></script>



<script src="/js/search.js"></script>
<script type="text/javascript">
    //theme config datas
    var copyrightObj = {};
    copyrightObj.enable = 'true';
    copyrightObj.triggerCopyLength = '200';
    copyrightObj.appendText = '商业转载请联系作者获得授权,非商业转载请注明出处 © gasslinks.com';
    var leancloudObj = {};
    leancloudObj.enable = 'true';
    leancloudObj.className = 'blog';
    leancloudObj.limits = '5';
</script>
<script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?dfebe5842f5d4196471b84802392a4b2";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
</script>
<script type="text/javascript">
    var search = {};
    var search_path = "search.xml";
    if (!search_path) {
        search_path = "search.xml";
    }
    search.path = "/" + search_path;
    search.func =  _ajax.init();
</script>
<script src="/js/app.js"></script>


</body>
</html>